{% extends 'base.html' %}

{% block title %}页面未找到 - 乒乓球培训管理系统{% endblock %}

{% block page_title %}页面未找到{% endblock %}

{% block extra_css %}
<style>
    .error-container {
        text-align: center;
        padding: 4rem 2rem;
        min-height: 60vh;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .error-content {
        max-width: 500px;
    }

    .error-code {
        font-size: 6rem;
        font-weight: 700;
        color: #ffc107;
        margin-bottom: 1rem;
        text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
    }

    .error-title {
        font-size: 2rem;
        font-weight: 600;
        color: #2c3e50;
        margin-bottom: 1rem;
    }

    .error-message {
        font-size: 1.1rem;
        color: #6c757d;
        margin-bottom: 2rem;
        line-height: 1.6;
    }

    .error-actions {
        display: flex;
        gap: 1rem;
        justify-content: center;
        flex-wrap: wrap;
    }

    .error-btn {
        padding: 0.75rem 2rem;
        border-radius: 50px;
        text-decoration: none;
        font-weight: 500;
        transition: all 0.3s ease;
        border: none;
        cursor: pointer;
    }

    .error-btn-primary {
        background: linear-gradient(135deg, #007bff, #0056b3);
        color: white;
    }

    .error-btn-secondary {
        background: #f8f9fa;
        color: #6c757d;
        border: 1px solid #dee2e6;
    }

    .error-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 15px rgba(0,0,0,0.2);
        text-decoration: none;
    }

    .error-icon {
        font-size: 4rem;
        color: #ffc107;
        margin-bottom: 2rem;
    }

    .suggestions {
        text-align: left;
        margin: 2rem 0;
        padding: 1.5rem;
        background: #f8f9fa;
        border-radius: 10px;
        border-left: 4px solid #ffc107;
    }

    .suggestions h5 {
        color: #2c3e50;
        margin-bottom: 1rem;
    }

    .suggestions ul {
        margin: 0;
        padding-left: 1.5rem;
    }

    .suggestions li {
        margin-bottom: 0.5rem;
        color: #6c757d;
    }
</style>
{% endblock %}

{% block content %}
<div class="error-container">
    <div class="error-content">
        <div class="error-icon">
            <i class="bi bi-question-circle"></i>
        </div>
        <div class="error-code">404</div>
        <h1 class="error-title">页面未找到</h1>
        <p class="error-message">
            抱歉，您访问的页面不存在。<br>
            可能是网址输入错误，或者页面已被移动或删除。
        </p>

        <div class="suggestions">
            <h5><i class="bi bi-lightbulb me-2"></i>您可以尝试：</h5>
            <ul>
                <li>检查网址是否正确</li>
                <li>返回上一页重新导航</li>
                <li>访问系统首页</li>
                <li>联系系统管理员</li>
            </ul>
        </div>

        <div class="error-actions">
            <a href="javascript:history.back()" class="error-btn error-btn-secondary">
                <i class="bi bi-arrow-left me-2"></i>返回上页
            </a>
            <a href="{{ url_for('dashboard.index') }}" class="error-btn error-btn-primary">
                <i class="bi bi-house me-2"></i>返回首页
            </a>
        </div>
    </div>
</div>
{% endblock %}